<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">   

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    </h:head>

    <h:body>

        <ui:composition>

            <p:dialog closable="true" showHeader="true" widgetVar="pn_visualizar_gmaps" resizable="false" width="800"
                      maximizable="false" modal="true" styleClass="dialog" appendToBody="true">

                <f:facet name="header">
                    Visualização de Pontos No Mapa
                </f:facet>

                <h:form id="frm_visualizar_mapa">

                    <p:outputPanel autoUpdate="true">
                        <p:gmap center="#{controllerVisualizarGmaps.maiorLatLong}" 
                                zoom="#{controllerVisualizarGmaps.zoom}" 
                                type="ROADMAP"
                                styleClass="maps"
                                model="#{controllerVisualizarGmaps.mapModel}"
                                widgetVar="gMaps"
                                style="width: 100%; height: 400px">

                        </p:gmap>                    
                    </p:outputPanel>

                    <div class="espacamento"/>

                    <div align="left">

                        <p:commandButton id="btFechar"
                                         icon="ui-icon-close"
                                         value="#{msg.fechar}"
                                         immediate="true"
                                         onclick="pn_visualizar_gmaps.hide();"/>

                    </div>

                </h:form>

            </p:dialog>

        </ui:composition>

    </h:body>

</html>
